package cn.project.lemontree.dao;

import cn.project.lemontree.bean.Administrator;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdministratorDao extends BaseMapper<Administrator> {
    Administrator login(String telephone);
    List<Administrator> listPage(@Param("page") Integer page,@Param("size") Integer size,@Param("userName") String userName,@Param("telephone") String telephone);
    int count(@Param("userName") String userName,@Param("telephone") String telephone);
    int update(Administrator administrator);
    int save(Administrator administrator);
}
